import React from 'react';
import {Text, View, StyleSheet} from 'react-native';

const ScanResultScreen = ({route}) => {
  const {data} = route.params;
  return (
    <View style={styles.container}>
      <Text>扫描结果</Text>
      <View style={styles.scanResultBox}>
        <Text selectable>{data}</Text>
      </View>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
  scanResultBox: {
    borderColor: 'gray',
    borderWidth: 1,
    padding: 10,
  },
});

export default ScanResultScreen;
